package com.hydl.power.service;

import com.github.pagehelper.PageInfo;
import com.hydl.power.pojo.*;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface AppService {
    Map getHomePage(String token) throws ParseException;

    PageInfo<WorkOrder> getPendingOrder(String token, Integer pageNum, Integer pageSize);

    PageInfo<WorkOrder> getBeingProcessedOrder(String token, Integer pageNum, Integer pageSize);

    PageInfo<WorkOrder> getGoodOrder(String token, Integer pageNum, Integer pageSize);

    int updateOrderStatusById(Integer id, Integer orderStatus, String dispose, String analyze, String reason);

    PageInfo<WorkOrder> getIncidentRecord(Integer pageNum, Integer pageSize,String token, Integer timeStatus, Integer faultTypes);

    int addOrderDelivery(String deviceId, Integer rank, Integer faultTypes, String fault);

    int addUserOrder(String  token,String fault,String deviceName,Integer rank,Integer faultTypes,String roomName,String roomId,String imageUrl);

    List<OrderDeliveryMenu> getDevice(String token);

    List<City> getCity(String token);

    List<Project> getProjectByCityId(String token, String cityId);

    List<PowerRoom> getPowerRoomByProjectId(String token, String projectId);

    List<Device> getDeviceByPowerRoomId(String token, String powerRoomId);

    Powerdata getPowerDataByDeviceId(String navId);

    int affirmOrderStatusById(Integer id);

    List<TemperatureDevice> getTemperatureDeviceListByToken(String token);

    List<Parts> getParts();
}
